You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Necroing this- but with the immediate return of an EMPTY on the call if it would block...what use is epoll-ing this?
I mean...it only has any value if you're...you know...BLOCKING on the call there. You kind of needed to do Socket type semantics there in this code...because it's the far end of a network stack driver.
My test env is, I have created multiple vfiaces, and foreach vifaces, and I want to receive packet if pkt comes from any viface.
so I need a non bolck way to read viface,or I cannot recv from viface,even if anther vfiace has received packet on tun.
Another issue is,as we already know, both two queues on one viface can rx and tx pkt,tx queue is not fixed, depends on selectted by tun driver,I want to epoll two queues on one viface and recv pkt from correct queue.
FYI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#6 answer may still go wrong when two or more viface read and pcap capture simultaneously. this patch can solve read problem perfectly